<%--
  Created by IntelliJ IDEA.
  User: yangpengjie
  Date: 2022/12/30
  Time: 16:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="zxx">
<!--<![endif]-->
<!-- Begin Head -->

<head>
  <title>SplashDash</title>
  <meta charset="utf-8">
  <meta content="width=device-width, initial-scale=1.0" name="viewport">
  <meta name="description" content="">
  <meta name="keywords" content="">
  <meta name="author" content="">
  <meta name="MobileOptimized" content="320">
  <!--Start Style -->
  <%@include file="/jsp/client/common_css.jsp"%>
</head>


<body>
<div class="loader">
  <div class="spinner">
    <img src="assets/images/loader.gif" alt=""/>
  </div>
</div>
<!-- Main Body -->
<div class="page-wrapper">
  <!-- Header Start -->
  <%--    引入动态文件--%>
  <%@include file="/jsp/client/header.jsp"%>
  <!-- Sidebar Start -->
  <%@include file="left.jsp"%>
  <!-- Container Start -->
  <div class="page-wrapper">
    <div class="main-content">
      <!-- Page Title Start -->
      <div class="row">
        <div class="colxl-12 col-lg-12 col-md-12 col-sm-12 col-12">
          <div class="page-title-wrapper">
            <div class="page-title-box ad-title-box-use">
              <h4 class="page-title">用户管理</h4>
            </div>
            <div class="ad-breadcrumb">
              <ul>
                <li>
                  <div class="ad-user-btn">
                    <input class="form-control" type="text" placeholder="请输入查询内容" id="search-input" value="${myPageInfo.search}">
                    <svg onclick="goto(1)" version="1.1" xmlns="http://www.w3.org/2000/svg"  viewBox="0 0 56.966 56.966">
                      <path d="M55.146,51.887L41.588,37.786c3.486-4.144,5.396-9.358,5.396-14.786c0-12.682-10.318-23-23-23s-23,10.318-23,23
												s10.318,23,23,23c4.761,0,9.298-1.436,13.177-4.162l13.661,14.208c0.571,0.593,1.339,0.92,2.162,0.92
												c0.779,0,1.518-0.297,2.079-0.837C56.255,54.982,56.293,53.08,55.146,51.887z M23.984,6c9.374,0,17,7.626,17,17s-7.626,17-17,17
												s-17-7.626-17-17S14.61,6,23.984,6z"></path>
                    </svg>
                  </div>
                </li>
                <li>
                  <div class="add-group">
                    <a class="ad-btn" href="/jsp/admin/user/add.jsp">添加用户</a>
                  </div>
                </li>
              </ul>
            </div>
          </div>
        </div>
      </div>
      <!-- Table Start -->
      <div class="row">
        <!-- Styled Table Card-->
        <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
          <div class="card table-card">
            <div class="card-header pb-0">
              <h4>用户列表</h4>
            </div>
            <div class="card-body">
              <div class="chart-holder">
                <div class="table-responsive">
                                                  <table class="table table-styled mb-0">
                                                      <thead>
                                                      <tr>
                                                          <th>#</th>
                                                          <th>姓名</th>
                                                          <th>联系方式</th>
                                                          <th>密码</th>
                                                      </tr>
                                                      </thead>
                                                      <tbody>
                                                      <c:forEach var="item" items="${list}">
                                                          <tr>
                                                              <td>
                                                                  <div class="">
                                                                      <input name="ids" type="checkbox" value="${item.id}">
                                                                  </div>
                                                              </td>
                                                              <td>${item.name}</td>
                                                              <td>${item.subject}</td>
                                                              <td>${item.score}</td>
                                                              <td class="relative">
                                                                  <a class="action-btn " href="javascript:void(0); ">
                                                                      <svg class="default-size " viewBox="0 0 341.333 341.333 ">
                                                                          <g>
                                                                              <g>
                                                                                  <g>
                                                                                      <path d="M170.667,85.333c23.573,0,42.667-19.093,42.667-42.667C213.333,19.093,194.24,0,170.667,0S128,19.093,128,42.667 C128,66.24,147.093,85.333,170.667,85.333z "></path>
                                                                                      <path d="M170.667,128C147.093,128,128,147.093,128,170.667s19.093,42.667,42.667,42.667s42.667-19.093,42.667-42.667 S194.24,128,170.667,128z "></path>
                                                                                      <path d="M170.667,256C147.093,256,128,275.093,128,298.667c0,23.573,19.093,42.667,42.667,42.667s42.667-19.093,42.667-42.667 C213.333,275.093,194.24,256,170.667,256z "></path>
                                                                                  </g>
                                                                              </g>
                                                                          </g>
                                                                      </svg>
                                                                  </a>
                                                                  <div class="action-option ">
                                                                      <ul>
                                                                          <li>
                                                                              <a href="/teacher?method=StudentScore&id=${item.id}"><i class="far fa-edit mr-2 "></i>编辑</a>
                                                                          </li>
                                                                          <li>
                                                                              <a href="javascript:void(0);"  onclick="if(confirm('确定要删除选中的记录吗？')){window.location.href='/admin?method=deleteUser&id=${item.id}' }" ><i class="far fa-trash-alt mr-2 "></i>删除</a>
                                                                          </li>
                                                                      </ul>
                                                                  </div>
                                                              </td>
                                                          </tr>
                                                      </c:forEach>
                                                      </tbody>
                                                  </table>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
</body>
</html>